#ifndef DOCUMP_H
#define DOCUMP_H

int docum_mfile(MemFile *infile, MemFile *outfile, MemFile *sigfile,
	boolean text_input, char *doc_type, char *useridSnd, long keySerialSnd,
	char *useridRcv, long keySerialRcv);
boolean is_docum_mfile(MemFile *infile, boolean text_doc);
int de_docum_mfile(MemFile *infile, MemFile *outfile, MemFile *sigfile, boolean text_doc,
	char *useridSnd, long *nKeySerialSnd,
	char *useridRcv, long *nKeySerialRcv);

int doc_armor_mfile(MemFile *inFile, MemFile *outFile);
long getLong(char *p, int len);
char *get_docum_line(char *buf, FILE *f);
char *mfget_docum_line(char *buf, MemFile *f);

void foutcrc(word32 crc, FILE *outFile);

#endif /* #ifdef DOCUMP_H */
